package com.zqweb.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zqweb.common.to.SeckillOrderTo;
import com.zqweb.common.utils.PageUtils;
import com.zqweb.gulimall.order.entity.OrderEntity;
import com.zqweb.gulimall.order.vo.*;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author zq
 * @email zq@gmail.com
 * @date 2021-11-26 19:35:02
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo getOrderConfirmVo() throws ExecutionException, InterruptedException;

    OrderSubmitRespVo orderSubmitVo(OrderSubmitVo orderSubmitVo);

    OrderEntity getOrderEntityByOrderSn(String orderSn);

    void closeOrderHandle(OrderEntity orderEntity);

    PayVo orderPay(String orderSn);

    PageUtils getOrdersByMemberIdWithParams(Map<String, Object> params);

    void handlePayResult(PayAsyncVo payAsyncVo);

    void buildSeckillOrder(SeckillOrderTo seckillOrderTo);

}

